export const propList = [
  {
    label: "名称",
    prop: "name",
    width: 240,
  },

  {
    label: "收款账号",
    prop: "receive_val",
  },
  {
    label: "状态",
    slotName: "status",
  },

  {
    label: "创建时间",
    prop: "created_at",
    width: 160,
  },
  {
    label: "修改时间",
    prop: "updated_at",
    width: 160,
  },
  {
    label: "操作",
    slotName: "op",
    fixed: "right",
    width: 260,
  },
];
export const formItems = [
  {
    prop: "name",
    label: "名称",
    placeholder: "请输入名称",
    lg: 6,
    type: "input",
    otherOptions: {},
  },
  {
    prop: "status",
    label: "状态",
    type: "select",
    options: [
      {
        key: 1,
        value: "启用",
      },
      {
        key: 2,
        value: "禁用",
      },
    ],
    placeholder: "请选择状态",
    lg: 6,
    otherOptions: {
      // style: "width:200px",
    },
  },
  {
    prop: "created_at",
    label: "创建时间",
    lg: 10,
    type: "datetimerange",
    valueFormat: "x",
    otherOptions: {
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 1, 1, 23, 59, 59),
      ],
    },
  },
];
export const dialogConfig = {
  title: "配置",
  formConfig: {
    labelWidth: "88px",
    colLayout: { span: 24 },
    formData: {},
    formItems: [
      {
        label: "名称",
        prop: "name",
        type: "input",
        placeholder: "请输入名称",
      },
      {
        label: "收款账号",
        prop: "receive_val",
        type: "input",
        placeholder: "请输入",
      },
      {
        label: "状态",
        prop: "status",
        type: "radio",
        button: true,
        defaultValue: 1,
        change(value) {
          // vm.radiaChange(value);
        },
        radioList: [
          {
            label: "启用",
            value: 1,
            size: "small",
          },
          {
            label: "禁用",
            value: 2,
            size: "small",
          },
        ],
      },
      {
        label: "备注",
        prop: "remark",
        type: "textarea",
        placeholder: "请输入",
      },
    ],
    formDataRules: {
      receive_val: [{ required: true, message: "请输入", trigger: "blur" }],
      name: [{ required: true, message: "请输入", trigger: "blur" }],
      status: [{ required: true, message: "请选择", trigger: "blur" }],
      // recharge_type: [{ required: true, message: "请选择", trigger: "blur" }],
    },
  },
};
